package org.l.qiao.check;

public class ShareCheck extends Check {

    private String title = ".+";
    private String sort = "[\\w\u4e00-\u9fa5]+";
    private String key = "[\\w\u4e00-\u9fa5,，]+";

    public boolean checkTitle(String title) {
        return check(this.title, title);
    }

    public boolean checkSort(String sort) {
        return check(this.sort, sort);
    }

    public boolean checkKey(String key) {
        return check(this.key, key);
    }

    public boolean checkContext(String context) {
        return context.length() > 0;
    }

    public String getTitle() {
        return title;
    }

    public String getSort() {
        return sort;
    }

    public String getKey() {
        return key;
    }
}
